﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(Product))]
    [ProtoContract]
    public class ProductDto
    {
        [ProtoMember(1)]
        public int id { get; set; }

        [ProtoMember(2)]
        public String title { get; set; }

        [ProtoMember(3)]
        public int category_id { get; set; }

        [ProtoMember(4)]
        public int type_id { get; set; }

        [ProtoMember(5)]
        public int upselling { get; set; }

        [ProtoMember(6)]
        public int hits { get; set; }

        [ProtoMember(7)]
        public int sort_id { get; set; }

        [ProtoMember(8)]
        public String link_url { get; set; }

        [ProtoMember(9)]
        public String img_url { get; set; }

        [ProtoMember(10)]
        public String seo_title { get; set; }

        [ProtoMember(11)]
        public String seo_keywords { get; set; }

        [ProtoMember(12)]
        public String seo_description { get; set; }

        [ProtoMember(13)]
        public String zhaiyao { get; set; }

        [ProtoMember(14)]
        public String contents { get; set; }

        [ProtoMember(15)]
        public int is_new { get; set; }

        [ProtoMember(16)]
        public int is_hot { get; set; }

        [ProtoMember(17)]
        public int is_msg { get; set; }

        [ProtoMember(18)]
        public int is_red { get; set; }

        [ProtoMember(19)]
        public int is_spec { get; set; }

        [ProtoMember(20)]
        public String tags { get; set; }

        [ProtoMember(21)]
        public DateTime add_time { get; set; }

        [ProtoMember(22)]
        public int channel_id { get; set; }

        [ProtoMember(23)]
        public String video_src { get; set; }

        [ProtoMember(24)]
        public String item_no { get; set; }

        [ProtoMember(25)]
        public int stock_quantity { get; set; }

        [ProtoMember(26)]
        public Decimal market_price { get; set; }

        [ProtoMember(27)]
        public Decimal sell_price { get; set; }

        [ProtoMember(28)]
        public int point { get; set; }

        [ProtoMember(29)]
        public int sell_point { get; set; }

        [ProtoMember(30)]
        public Decimal cost_price { get; set; }

        [ProtoMember(31)]
        public Decimal jinhuo_price { get; set; }

        [ProtoMember(32)]
        public Decimal PV { get; set; }

        [ProtoMember(33)]
        public int sales_volume { get; set; }

        [ProtoMember(34)]
        public int maxbuy { get; set; }

        [ProtoMember(35)]
        public int usermaxbuy { get; set; }

        [ProtoMember(36)]
        public Decimal weight { get; set; }

        [ProtoMember(37)]
        public int hour { get; set; }

        [ProtoMember(38)]
        public int IsGroup { get; set; }

        [ProtoMember(39)]
        public String product_type { get; set; }

        [ProtoMember(40)]
        public int shopid { get; set; }

        [ProtoMember(41)]
        public Decimal hongbao { get; set; }

        [ProtoMember(42)]
        public Decimal score { get; set; }

        [ProtoMember(43)]
        public Decimal hongbao_first { get; set; }

        [ProtoMember(44)]
        public Decimal score_first { get; set; }

        [ProtoMember(45)]
        public int Isfree { get; set; }

        [ProtoMember(46)]
        public int express_id { get; set; }

        [ProtoMember(47)]
        public int status { get; set; }

        [ProtoMember(48)]
        public int hasoption { get; set; }

        [ProtoMember(49)]
        public IList<ProductAlbumsDto> ProductAlbumsList { get; set; }

        [ProtoMember(50)]
        public IList<ProductCommentDto> ProductCommentList { get; set; }

        [ProtoMember(51)]
        public IList<ProductSkuDto> ProductSkuList { get; set; }

        [ProtoMember(52)]
        public IList<CustomerGroupPriceDto> GroupPriceList { get; set; }

    }
}
